import request from '@/utils/request'
/**
* get list ?
* @param params {*}
*/
export function _get (params) {
    return request({
        url: '/menu/getMenuByPage',
        method: 'get',
        params: params
    })
}
export function _getAllMenu (params) {
    return request({
        url: '/menu/getAllMenu',
        method: 'get',
        params: params
    })
}
export function _getRawMaterialByIdMen (params) {
  return request({
    url: '/menu/getRawMaterialByIdMen',
    method: 'get',
    params: params
  })
}
/**
* get row ?
* @param params {*}
*/
export function _find (params) {
    return request({
        url: '/menu/findMenuByPage',
        method: 'get',
        params: params
    })
}

// 新增數據
export function _post (params) {
    return request({
        url: '/menu/addMenu',
        method: 'post',
        data: params
    })
}
// 修改數據
export function _put (id, params) {
    return request({
        url: '/menu/editMenu?idMen=' + id,
        method: 'put',
        data: params
    })
}
// 刪除數據
export function _delete (params) {
    return request({
        url: '/menu/deleteMenu',
        method: 'delete',
        params: params
    })
}
